package com.xiaoyg.lession01.chapter21;

/**
 * 释放锁的不良后果
 */
public class MyThread extends Thread {

    private SyncronizedObject object;

    public MyThread(SyncronizedObject object){
        super();
        this.object = object;
    }


    @Override
    public void run() {
        object.printString("b","bb");
    }
}
